package cn.iocoder.yudao.module.system.controller.admin.tenant.vo.tenant;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.product.TenantProductSumRespVO;
import cn.iocoder.yudao.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 租户 Response VO")
@Data
@ExcelIgnoreUnannotated
public class TenantRespVO {

    @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("租户编号")
    private Long id;

    @Schema(description = "租户类型：1-普通；2-代理商", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer bizType;

    @Schema(description = "租户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道")
    @ExcelProperty("租户名")
    private String name;

    @Schema(description = "租户签名")
    private String sign;

    @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("联系人")
    private String contactName;

    @Schema(description = "联系手机", example = "15601691300")
    @ExcelProperty("联系手机")
    private String contactMobile;

    @Schema(description = "租户状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS)
    private Integer status;

    @Schema(description = "租户开户审批状态：1-通过；0-待审；9-拒绝", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer approveStatus;

    @Schema(description = "绑定域名", example = "https://www.iocoder.cn")
    private String website;

    @Schema(description = "钱包余额", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("钱包余额")
    private BigDecimal wallet;

    @Schema(description = "租户套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long packageId;

    @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime expireTime;

    @Schema(description = "CID主叫分组")
    private String cidGroup;

    @Schema(description = "话费成本价")
    private BigDecimal callCostPrice;

    @Schema(description = "话费销售价")
    private BigDecimal callSalePrice;
//    @Schema(description = "账号数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
//    private Integer accountCount;
//
//    @Schema(description = "每日领取企业上限", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
//    private Integer receiveLimit;

    @Schema(description = "VOIP主叫")
    private String callNumber;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    private List<Long> channelIdList;

    private List<Long> numberIdList;

    @Schema(description = "认证类型：1-企业版；2-个人版", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer authType;

    @Schema(description = "所属代理商ID")
    private Long parentId;

    @Schema(description = "所属代理商名称")
    private String parentName;

    @Schema(description = "系统名称")
    private String productName;

    @Schema(description = "Logo")
    private String logo;

    private List<TenantProductSumRespVO> tenantProduct;
}
